<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<%response.setHeader("Pragma","No-cache");
	response.setHeader("Cache-Control","no-cache");
	response.setDateHeader("Expires", 0);
	response.flushBuffer();%>
<html>
<head>
	<meta charset="utf-8">
	<meta name="decorator" content="default"/>
	<meta http-equiv="Cache-Control" content="max-age=7200" />
	<meta name="format-detection" content="telephone=yes">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="description" content="">
	<meta name="viewport" content="width=device-width, maximum-scale=1.0, user-scalable=no">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<link rel="icon" href="https://static.jianshukeji.com/highcharts/images/favicon.ico">
	<style type="text/css">
		#container {
			height: 90vh;
			margin: 0 auto;
		}
	</style>
	<script src="https://img.hcharts.cn/highcharts/highcharts.js"></script>
	<script src="https://img.hcharts.cn/highcharts/modules/exporting.js"></script>
	<script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
	<script type="text/javascript" src="${ctxStatic}/ajz/js/jquery.min.js"></script>
</head>
<body>
<div id="searchForm" class="breadcrumb form-search">
	<label>排查人员：</label><input type="text" style="width: 80px" id="checkMan">
	<label>企业名称：</label><input type="text" style="width: 80px" id="enterpriseName">
	<label>起始日期：&nbsp;</label><input id="beginDate" name="beginDate" type="text" readonly="readonly" maxlength="20" class="input-mini Wdate"
									 value="<fmt:formatDate value="${log.beginDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
	<label>截止日期</label><input id="endDate" name="endDate" type="text" readonly="readonly" maxlength="20" class="input-mini Wdate"
																value="<fmt:formatDate value="${log.endDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>&nbsp;&nbsp;
	&nbsp;&nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="button" value="查询" onclick="search();"/>&nbsp;&nbsp;
</div>
<div>
	<button type="button" id="btnExport" onclick="exportExcel('DataTables_Table_0')">导出Excel</button>
</div>
<div>
<table class="table table-striped table-bordered bootstrap-datatable datatable dataTable" id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
	<thead>
	<tr role="row">
		<th class="sorting_asc" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Username: activate to sort column descending" >编号</th>
		<th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Date registered: activate to sort column ascending" >单位</th>
		<th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Date registered: activate to sort column ascending" >地址</th>
		<th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Date registered: activate to sort column ascending" >负责人</th>
		<th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Date registered: activate to sort column ascending"  style="width: 140px">负责人电话</th>
		<th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Date registered: activate to sort column ascending" >检查时间</th>
		<th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Date registered: activate to sort column ascending" >存在问题</th>
		<th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Date registered: activate to sort column ascending" >整改情况</th>
	</tr>
	</thead>
	<tbody id="mytable"  role="alert" aria-live="polite" aria-relevant="all">
	<tr class="odd">
	</tr>
	</tbody>
</table>
</div>
<script>
     $(document).ready(function() {
            search();
     	});
     function search() {
         var beginDate = $("#beginDate").val();
         var endDate = $("#endDate").val();
         var checkStatus = $("#checkStatus").val();
         var checkMan = $("#checkMan").val();
         var enterpriseName = $("#enterpriseName").val();
         $.ajax({
             url: "getReadProblem",
             type: "POST",
             data: "checkStatus="+checkStatus+"&beginDate="+beginDate+"&endDate="+endDate+"&checkMan="+checkMan+"&enterpriseName="+enterpriseName,
             dataType: "json",
             async: true,
             success: function (map){
                 //删除上一次查询的所有值
                 var tb = document.getElementById("mytable");
                 var rowNum=tb.rows.length;
                 for (i=0;i<rowNum;i++)
                 {
                     tb.deleteRow(i);
                     rowNum=rowNum-1;
                     i=i-1;
                 }
                 var tableList = map.list;
                 var tableNode = document.getElementById("mytable");
                 var a = 1;
                 for (var i = 0; i < tableList.length; i++) {
                     var trNode = tableNode.insertRow();
                     for(var j=0;j<8;j++){
                         var tdNode = trNode.insertCell();
                         switch (j) {
                             case 0:
                                 tdNode.innerHTML = a++;
                                 break;
                             case 1:
                                 tdNode.innerHTML = tableList[i].enterpriseName;
                                 break;
                             case 2:
                                 tdNode.innerHTML = tableList[i].addr;
                                 break;
                             case 3:
                                 tdNode.innerHTML =tableList[i].chargePerson;
                                 break;
                             case 4:
                                 tdNode.innerHTML = tableList[i].telephone;
                                 break;
                             case 5:
                                 tdNode.innerHTML = tableList[i].updateDate;
                                 break;
                             case 6:
                                 var date = '';
                                 if(tableList[i].cycleTime=='0'){
                                     if(tableList[i].safetySystem!=null && tableList[i].safetySystem!=''){
                                         var str = tableList[i].safetySystem;
                                         var strs = str.split(',');
                                         for(var n=0;n<strs.length;n++){
                                             if(strs[n] == '1a'){
                                                 date = "企业未建立生产安全有关制度;(已整改)<br>"
                                             }if(strs[n] == '2a'){
                                                 date = "企业生产安全有关制度不齐全;(已整改)<br>"
                                             }if(strs[n] == '3a'){
                                                 date = "企业生产安全有关制度未执行;(已整改)<br>"
                                             }if(strs[n] == '4a'){
                                                 date = "企业生产安全有关制度与企业实际不符;(已整改)<br>"
                                             }
                                         }
                                     }if(tableList[i].fireSafety!=null && tableList[i].fireSafety!='') {
                                         var str = tableList[i].fireSafety;
                                         var strs = str.split(',');
                                         for(var n=0;n<strs.length;n++) {
                                             if (strs[n] == '1a') {
                                                 date = date + "企业存在“三合一”场所;(已整改)<br>"
                                             }if (strs[n] == '2a') {
                                                 date = date + "企业车间或独立区域安全出口不足（250-300平方以上的丙类厂房至少2个安全出口);(已整改)<br>"
                                             }if (strs[n] == '3a') {
                                                 date = date + "车间内消防通道、消防设施器材被堵塞占用;(已整改)<br>"
                                             }if (strs[n] == '4a') {
                                                 date = date + "企业厂内的消防器材配置不齐全，如应急灯、安全出口指示、灭火器或未按照相关规定进行配置;(已整改)<br>"
                                             }if (strs[n] == '5a') {
                                                 date = date + "企业内的消防器材未经常性维护点检或消防器材过期失效;(已整改)<br>"
                                             }
                                         }
                                     }if(tableList[i].electricSafety!=null && tableList[i].electricSafety!='') {
                                         var str = tableList[i].electricSafety;
                                         var strs = str.split(',');
                                         for(var n=0;n<strs.length;n++) {
                                             if (strs[n] == '1a') {
                                                 date = date + "企业部分电气设备设施运行工作标志和安全警示标志不齐全或未设置;(已整改)<br>"
                                             }
                                             if (strs[n] == '2a') {
                                                 date = date + "企业设备设施电气系统未接地或接地不否符合要求;(已整改)<br>"
                                             }
                                             if (strs[n] == '3a') {
                                                 date = date + "企业低压电器线路架设、绝缘及线路保护装置不符合要求或损坏失去效用;(已整改)<br>"
                                             }
                                             if (strs[n] == '4a') {
                                                 date = date + "企业现场临时线路没有设置安全保护措施，触电风险;(已整改)<br>"
                                             }
                                             if (strs[n] == '5a') {
                                                 date = date + "企业车间立式配电柜下方无防鼠、防水措施或配电设备设施被堵塞占用;(已整改)<br>"
                                             }
                                             if (strs[n] == '6a') {
                                                 date = date + "企业车间电气设备安全防护措施缺失或失效;(已整改)<br>"
                                             }
                                             if (strs[n] == '7a') {
                                                 date = date + "企业配电室安全工具未定期检验，配电室通风、应急照明、消防器材、防鼠不符合规范;(已整改)<br>"
                                             }
                                         }
                                     }if(tableList[i].dangerChemical!=null && tableList[i].dangerChemical!='') {
                                         var str = tableList[i].dangerChemical;
                                         var strs = str.split(',');
                                         for(var n=0;n<strs.length;n++) {
                                             if (strs[n] == '1a') {
                                                 date = date + "危险化学品储存场所不符合规范要求，如电气设施未防爆、无防泄漏装置、安全装置缺失等;(已整改)<br>"
                                             }
                                             if (strs[n] == '2a') {
                                                 date = date + "危险化学品储存场所无安全警示标识，如禁止烟火、人员需佩戴防护用品等;(已整改)<br>"
                                             }
                                             if (strs[n] == '3a') {
                                                 date = date + "危险化学品储存场所未配备相应的应急物资，如灭火器、消防沙等;(已整改)<br>"
                                             }
                                             if (strs[n] == '4a') {
                                                 date = date + "瓶装危险化学品品名未标识或标识错误（介质与品名不符);(已整改)<br>"
                                             }
                                             if (strs[n] == '5a') {
                                                 date = date + "瓶装危险化学品未配置二次容器;(已整改)<br>"
                                             }
                                             if (strs[n] == '6a') {
                                                 date = date + "危险化学品盛装的容器瓶口敞开，未密封;(已整改)<br>"
                                             }
                                             if (strs[n] == '7a') {
                                                 date = date + "从事危险化学品作业人员未佩戴相应劳保用品;(已整改)<br>"
                                             }
                                             if (strs[n] == '8a') {
                                                 date = date + "危险化学品储存及使用场所未张贴相应MSDS(物质安全资料说明书);(已整改)<br>"
                                             }
                                         }
                                     }if(tableList[i].occHealth!=null && tableList[i].occHealth!='') {
                                         var str = tableList[i].occHealth;
                                         var strs = str.split(',');
                                         for(var n=0;n<strs.length;n++) {
                                             if (strs[n] == '1a') {
                                                 date = date + "未对工作场所进行职业危害因素辨识及告知（粉尘、噪音、有毒挥发、高温等);(已整改)<br>"
                                             }
                                             if (strs[n] == '2a') {
                                                 date = date + "作业场所不符合职业健康要求，如人员生活用品放置在作业区域;(已整改)<br>"
                                             }
                                             if (strs[n] == '3a') {
                                                 date = date + "企业作业场所有职业危害岗位，未设置职业危害防护设施、人员未防护或企业劳保防护用品配置不足;(已整改)<br>"
                                             }
                                         }
                                     }if(tableList[i].specialEquipment!=null && tableList[i].specialEquipment!='') {
                                         var str = tableList[i].specialEquipment;
                                         var strs = str.split(',');
                                         for(var n=0;n<strs.length;n++) {
                                             if (strs[n] == '1a') {
                                                 date = date + "企业特种设备管理不符规范要求（特种设备证照及年检、维保等方面);(已整改)<br>"
                                             }
                                             if (strs[n] == '2a') {
                                                 date = date + "特种作业人员未持证上岗或证书失效;(已整改)<br>"
                                             }
                                         }
                                     }if(tableList[i].dustExplosion!=null && tableList[i].dustExplosion!='') {
                                         var str = tableList[i].dustExplosion;
                                         var strs = str.split(',');
                                         for(var n=0;n<strs.length;n++) {
                                             if (strs[n] == '1a') {
                                                 date = date + "粉尘涉爆危险场所厂房内设置办公室、会议室、危险化学品仓库;(已整改)<br>"
                                             }
                                             if (strs[n] == '2a') {
                                                 date = date + "除尘系统采用正压吹送粉尘;(已整改)<br>"
                                             }
                                             if (strs[n] == '3a') {
                                                 date = date + "铝镁等金属粉尘及木制粉尘的除尘器，未按照规范在除尘器下部设置锁气卸灰装置;(已整改)<br>"
                                             }
                                             if (strs[n] == '4a') {
                                                 date = date + "粉尘爆炸危险场所区域未使用防爆电气设备设施;(已整改)<br>"
                                             }
                                             if (strs[n] == '5a') {
                                                 date = date + "粉尘爆炸危险场所区域未使用防碰撞火花作业工具;(已整改)<br>"
                                             }
                                             if (strs[n] == '6a') {
                                                 date = date + "木制加工企业，与砂光机连接的风管必须按规范设置火花探测报警装置;(已整改)<br>"
                                             }
                                             if (strs[n] == '7a') {
                                                 date = date + "未制定或未执行粉尘清扫制度（应明确进行粉尘清扫的频次、方式、部位及区域、清扫记录);(已整改)<br>"
                                             }
                                         }
                                     }if(tableList[i].confinedSpaces!=null && tableList[i].confinedSpaces!='') {
                                         var str = tableList[i].confinedSpaces;
                                         var strs = str.split(',');
                                         for (var n = 0; n < strs.length; n++) {
                                             if (strs[n] == '1a') {
                                                 date = date + "企业未制定有限空间作业审批制度或未按照制度执行;(已整改)<br>"
                                             }
                                             if (strs[n] == '2a') {
                                                 date = date + "有限空间未辨识或未设置有限空间安全警示标识;(已整改)<br>"
                                             }
                                             if (strs[n] == '3a') {
                                                 date = date + "有限空间的企业未设置相应防护装备（通风设施、气体浓度检测仪器、空气呼吸器、安全绳索等);(已整改)<br>"
                                             }
                                         }
                                     }
								 }else{
									 if(tableList[i].safetySystem!=null && tableList[i].safetySystem!=''){
										 var str = tableList[i].safetySystem;
										 var strs = str.split(',');
										 for(var n=0;n<strs.length;n++){
											 if(strs[n] == '10' || strs[n] == '1b' || strs[n] == '11'){
												 date = "企业未建立生产安全有关制度;<br>"
											 }if(strs[n] == '20' || strs[n] == '2b' || strs[n] == '21'){
												 date = "企业生产安全有关制度不齐全;<br>"
											 }if(strs[n] == '30' || strs[n] == '3b' || strs[n] == '31'){
												 date = "企业生产安全有关制度未执行;<br>"
											 }if(strs[n] == '40' || strs[n] == '4b' || strs[n] == '41'){
												 date = "企业生产安全有关制度与企业实际不符;<br>"
											 }
										 }
									 }if(tableList[i].fireSafety!=null && tableList[i].fireSafety!='') {
										 var str = tableList[i].fireSafety;
										 var strs = str.split(',');
										 for(var n=0;n<strs.length;n++) {
											 if (strs[n] == '10' || strs[n] == '1b' || strs[n] == '11' || strs[n] == '1') {
												 date = date + "企业存在“三合一”场所;<br>"
											 }if (strs[n] == '20' || strs[n] == '2b' || strs[n] == '21' || strs[n] == '2') {
												 date = date + "企业车间或独立区域安全出口不足（250-300平方以上的丙类厂房至少2个安全出口);<br>"
											 }if (strs[n] == '30' || strs[n] == '3b' || strs[n] == '31' || strs[n] == '3') {
												 date = date + "车间内消防通道、消防设施器材被堵塞占用;<br>"
											 }if (strs[n] == '40' || strs[n] == '4b' || strs[n] == '41' || strs[n] == '4') {
												 date = date + "企业厂内的消防器材配置不齐全，如应急灯、安全出口指示、灭火器或未按照相关规定进行配置;<br>"
											 }if (strs[n] == '50' || strs[n] == '5b' || strs[n] == '51' || strs[n] == '5') {
												 date = date + "企业内的消防器材未经常性维护点检或消防器材过期失效;<br>"
											 }
										 }
									 }if(tableList[i].electricSafety!=null && tableList[i].electricSafety!='') {
										 var str = tableList[i].electricSafety;
										 var strs = str.split(',');
										 for(var n=0;n<strs.length;n++) {
											 if (strs[n] == '10' || strs[n] == '1b' || strs[n] == '11' || strs[n] == '1') {
												 date = date + "企业部分电气设备设施运行工作标志和安全警示标志不齐全或未设置;<br>"
											 }
											 if (strs[n] == '20' || strs[n] == '2b' || strs[n] == '21' || strs[n] == '2') {
												 date = date + "企业设备设施电气系统未接地或接地不否符合要求;<br>"
											 }
											 if (strs[n] == '30' || strs[n] == '3b' || strs[n] == '31' || strs[n] == '3') {
												 date = date + "企业低压电器线路架设、绝缘及线路保护装置不符合要求或损坏失去效用;<br>"
											 }
											 if (strs[n] == '40' || strs[n] == '4b' || strs[n] == '41' || strs[n] == '4') {
												 date = date + "企业现场临时线路没有设置安全保护措施，触电风险;<br>"
											 }
											 if (strs[n] == '50' || strs[n] == '5b' || strs[n] == '51' || strs[n] == '5') {
												 date = date + "企业车间立式配电柜下方无防鼠、防水措施或配电设备设施被堵塞占用;<br>"
											 }
											 if (strs[n] == '60' || strs[n] == '6b' || strs[n] == '61' || strs[n] == '6') {
												 date = date + "企业车间电气设备安全防护措施缺失或失效;<br>"
											 }
											 if (strs[n] == '70' || strs[n] == '7b' || strs[n] == '71' || strs[n] == '7') {
												 date = date + "企业配电室安全工具未定期检验，配电室通风、应急照明、消防器材、防鼠不符合规范;<br>"
											 }
										 }
									 }if(tableList[i].dangerChemical!=null && tableList[i].dangerChemical!='') {
										 var str = tableList[i].dangerChemical;
										 var strs = str.split(',');
										 for(var n=0;n<strs.length;n++) {
											 if (strs[n] == '10' || strs[n] == '1b' || strs[n] == '11') {
												 date = date + "危险化学品储存场所不符合规范要求，如电气设施未防爆、无防泄漏装置、安全装置缺失等;<br>"
											 }
											 if (strs[n] == '20' || strs[n] == '2b' || strs[n] == '21') {
												 date = date + "危险化学品储存场所无安全警示标识，如禁止烟火、人员需佩戴防护用品等;<br>"
											 }
											 if (strs[n] == '30' || strs[n] == '3b' || strs[n] == '31') {
												 date = date + "危险化学品储存场所未配备相应的应急物资，如灭火器、消防沙等;<br>"
											 }
											 if (strs[n] == '40' || strs[n] == '4b' || strs[n] == '41') {
												 date = date + "瓶装危险化学品品名未标识或标识错误（介质与品名不符);<br>"
											 }
											 if (strs[n] == '50' || strs[n] == '5b' || strs[n] == '51') {
												 date = date + "瓶装危险化学品未配置二次容器;<br>"
											 }
											 if (strs[n] == '60' || strs[n] == '6b' || strs[n] == '61') {
												 date = date + "危险化学品盛装的容器瓶口敞开，未密封;<br>"
											 }
											 if (strs[n] == '70' || strs[n] == '7b' || strs[n] == '71') {
												 date = date + "从事危险化学品作业人员未佩戴相应劳保用品;<br>"
											 }
											 if (strs[n] == '80' || strs[n] == '8b' || strs[n] == '81') {
												 date = date + "危险化学品储存及使用场所未张贴相应MSDS（物质安全资料说明书）;<br>"
											 }
										 }
									 }if(tableList[i].occHealth!=null && tableList[i].occHealth!='') {
										 var str = tableList[i].occHealth;
										 var strs = str.split(',');
										 for(var n=0;n<strs.length;n++) {
											 if (strs[n] == '10' || strs[n] == '1b' || strs[n] == '11') {
												 date = date + "未对工作场所进行职业危害因素辨识及告知（粉尘、噪音、有毒挥发、高温等);<br>"
											 }
											 if (strs[n] == '20' || strs[n] == '2b' || strs[n] == '21') {
												 date = date + "作业场所不符合职业健康要求，如人员生活用品放置在作业区域;<br>"
											 }
											 if (strs[n] == '30' || strs[n] == '3b' || strs[n] == '31') {
												 date = date + "企业作业场所有职业危害岗位，未设置职业危害防护设施、人员未防护或企业劳保防护用品配置不足;<br>"
											 }
										 }
									 }if(tableList[i].specialEquipment!=null && tableList[i].specialEquipment!='') {
										 var str = tableList[i].specialEquipment;
										 var strs = str.split(',');
										 for(var n=0;n<strs.length;n++) {
											 if (strs[n] == '10' || strs[n] == '1b' || strs[n] == '11') {
												 date = date + "企业特种设备管理不符规范要求（特种设备证照及年检、维保等方面);<br>"
											 }
											 if (strs[n] == '20' || strs[n] == '2b' || strs[n] == '21') {
												 date = date + "特种作业人员未持证上岗或证书失效;<br>"
											 }
										 }
									 }if(tableList[i].dustExplosion!=null && tableList[i].dustExplosion!='') {
										 var str = tableList[i].dustExplosion;
										 var strs = str.split(',');
										 for(var n=0;n<strs.length;n++) {
											 if (strs[n] == '10' || strs[n] == '1b' || strs[n] == '11') {
												 date = date + "粉尘涉爆危险场所厂房内设置办公室、会议室、危险化学品仓库;<br>"
											 }
											 if (strs[n] == '20' || strs[n] == '2b' || strs[n] == '21') {
												 date = date + "除尘系统采用正压吹送粉尘;<br>"
											 }
											 if (strs[n] == '30' || strs[n] == '3b' || strs[n] == '31') {
												 date = date + "铝镁等金属粉尘及木制粉尘的除尘器，未按照规范在除尘器下部设置锁气卸灰装置;<br>"
											 }
											 if (strs[n] == '40' || strs[n] == '4b' || strs[n] == '41') {
												 date = date + "粉尘爆炸危险场所区域未使用防爆电气设备设施;<br>"
											 }
											 if (strs[n] == '50' || strs[n] == '5b' || strs[n] == '51') {
												 date = date + "粉尘爆炸危险场所区域未使用防碰撞火花作业工具;<br>"
											 }
											 if (strs[n] == '60' || strs[n] == '6b' || strs[n] == '61') {
												 date = date + "木制加工企业，与砂光机连接的风管必须按规范设置火花探测报警装置;<br>"
											 }
											 if (strs[n] == '70' || strs[n] == '7b' || strs[n] == '71') {
												 date = date + "未制定或未执行粉尘清扫制度（应明确进行粉尘清扫的频次、方式、部位及区域、清扫记录);<br>"
											 }
										 }
									 }if(tableList[i].confinedSpaces!=null && tableList[i].confinedSpaces!='') {
										 var str = tableList[i].confinedSpaces;
										 var strs = str.split(',');
										 for (var n = 0; n < strs.length; n++) {
											 if (strs[n] == '10' || strs[n] == '1b' || strs[n] == '11') {
												 date = date + "企业未制定有限空间作业审批制度或未按照制度执行;<br>"
											 }
											 if (strs[n] == '20' || strs[n] == '2b' || strs[n] == '21') {
												 date = date + "有限空间未辨识或未设置有限空间安全警示标识;<br>"
											 }
											 if (strs[n] == '30' || strs[n] == '3b' || strs[n] == '31') {
												 date = date + "有限空间的企业未设置相应防护装备（通风设施、气体浓度检测仪器、空气呼吸器、安全绳索等);<br>"
											 }
										 }
									 }
								 }
								 tdNode.innerHTML = date;
								 break;
							 case 7:
								 if(tableList[i].cycleTime=='0'){
									 tdNode.innerHTML = '已整改';
								 }else if(tableList[i].countNum=='1' && tableList[i].cycleTime==null){
									 tdNode.innerHTML = '已排查，未复查';
								 }else{
									 tdNode.innerHTML = '未整改';
								 }
							 default:
							 break;
						 }
					 }
				 }
			 }
		 });
     };

     var idTmr;
     //获取当前浏览器类型
     function getExplorer() {
         var explorer = window.navigator.userAgent ;
         //ie
         if (explorer.indexOf("MSIE") >= 0) {
             return 'ie';
         }
         //firefox
         else if (explorer.indexOf("Firefox") >= 0) {
             return 'Firefox';
         }
         //Chrome
         else if(explorer.indexOf("Chrome") >= 0){
             return 'Chrome';
         }
         //Opera
         else if(explorer.indexOf("Opera") >= 0){
             return 'Opera';
         }
         //Safari
         else if(explorer.indexOf("Safari") >= 0){
             return 'Safari';
         }
     }

     //获取到类型需要判断当前浏览器需要调用的方法，目前项目中火狐，谷歌，360没有问题
     //win10自带的IE无法导出
     function exportExcel(tableid) {
         if(getExplorer()=='ie')
         {
             var curTbl = document.getElementById(tableid);
             var oXL = new ActiveXObject("Excel.Application");
             var oWB = oXL.Workbooks.Add();
             var xlsheet = oWB.Worksheets(1);
             var sel = document.body.createTextRange();
             sel.moveToElementText(curTbl);
             sel.select();
             sel.execCommand("Copy");
             xlsheet.Paste();
             oXL.Visible = true;

             try {
                 var fname = oXL.Application.GetSaveAsFilename("Excel.xls", "Excel Spreadsheets (*.xls), *.xls");
             } catch (e) {
                 print("Nested catch caught " + e);
             } finally {
                 oWB.SaveAs(fname);
                 oWB.Close(savechanges = false);
                 oXL.Quit();
                 oXL = null;
                 idTmr = window.setInterval("Cleanup();", 1);
             }
         }
         else
         {
             tableToExcel(tableid)
         }
     }
     function Cleanup() {
         window.clearInterval(idTmr);
         CollectGarbage();
     }

     //判断浏览器后调用的方法，把table的id传入即可
     var tableToExcel = (function() {
         var uri = 'data:application/vnd.ms-excel;base64,',
             template = '<html><head><meta charset="UTF-8"></head><body><table>{table}</table></body></html>',
             base64 = function(s) { return window.btoa(unescape(encodeURIComponent(s))) },
             format = function(s, c) {
                 return s.replace(/{(\w+)}/g,
                     function(m, p) { return c[p]; }) }
         return function(table, name) {
             if (!table.nodeType) table = document.getElementById(table)
             var ctx = {worksheet: name || 'Worksheet', table: table.innerHTML}
             window.location.href = uri + base64(format(template, ctx))
         }
     })();
</script>
</body>
</html>
